//
//  PaperTableViewCell.m
//  ZZLC
//
//  Created by 杨春至 on 2017/12/18.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "PaperTableViewCell.h"
#import <UIImageView+WebCache.h>

@interface PaperTableViewCell ()
@property (nonatomic,strong) UIImageView *bgView;
@end

@implementation PaperTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.bgView = [[UIImageView alloc]init];
        [self.contentView addSubview:_bgView];
        [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.contentView);
        }];

    }
    return self;
}
- (void)setImgUrl:(NSString *)imgUrl{
    [self.bgView sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
    self.bgView.contentMode = UIViewContentModeScaleAspectFill;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
